package com.yfp.machine.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 机器广告新增vo
 *
 * 
 * @date 2023/12/29
 */
@Schema(description = "设备广告新增vo")
@Data
public class MachineAdAddVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "设备广告id")
    private Long machineAdId;

    @Schema(description = "设备id")
    @NotNull(message = "设备id不能为空")
    private String machineId;

    @Schema(description = "广告id")
    @NotNull(message = "广告id不能为空")
    private String adId;

    @Schema(title = "广告类型")
    @NotNull(message = "广告类型不能为空")
    private Integer adType;

    @Schema(description = "广告开始播放时间")
    @NotNull(message = "广告开始播放时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date palyBeginTime;

    @Schema(description = "广告结束播放时间")
    @NotNull(message = "广告结束播放时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date playEndTime;

    @Schema(description = "广告播放位置")
    @NotNull(message = "广告播放位置不能为空")
    private Integer palyAdPosition;


    /**
     * 设备列表
     */
    private List<String> machineIds;

}
